var $ = require('jquery');
var base=require("../base.js");
require("jquery.cookie");

module.exports = {
	
	cmdlist:$("#cmd"),
	courses:$("#courses"),
	pageMain:$("#main"),
	pageSelect:$("#selectCourse"),
	renderCourses: function(list) {
		console.log(list);
		$("#courses").empty();
		var sam='<a class="list-group-item" data="{}">{}</a>';
		var str="";
		for (var i = 0; i < list.length; i++) {
			str+=base.format(sam,[list[i].value,list[i].key]);
		}		
		$("#courses").append(str);
	},


};